#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
//int main()
//{
//	char buffer1[] = "abcdefgh";
//	char buffer2[] = "abef";
//	int n;
//	n = memcmp(buffer1, buffer2, sizeof(buffer1));
//	if (n > 0)
//		printf("'%s' >'%s'.\n", buffer1, buffer2);
//	else if (n < 0)
//		printf("'%s' < '%s'.\n", buffer1, buffer2);
//	else
//		printf("'%s' = '%s'.\n", buffer1, buffer2);
//	return 0;
//}
//
int main()
{
	FILE *pf=fopen("data.txt", "w");
	if (NULL == pf)
	{
		perror(fopen);
		return 1;
	}
	//fputs("hello worl", pf);
	int ch=fseek(pf, 5, SEEK_SET);
	printf("%c\n", ch);
	printf("%d\n", ch);
	return 0;
}